From: Corey Berla Date: Wed, 19 Oct 2022 16:17:39 +0000 (-0700) Subject: filechooserwidget: Expose selection model X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~143^2~9 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8af191e52dc664ae32917cdb020c4d8be2f4094d;p=gtk4.git filechooserwidget: Expose selection model FileChooserCell may need to change the selection during a DND. --- diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index eb5c93fca1..4ee063cdf7 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -7341,3 +7341,8 @@ gtk_file_chooser_widget_get_choice (GtkFileChooser *chooser, return NULL; } +GtkSelectionModel * +gtk_file_chooser_widget_get_selection_model (GtkFileChooserWidget *chooser) +{ + return chooser->selection_model; +} diff --git a/gtk/gtkfilechooserwidgetprivate.h b/gtk/gtkfilechooserwidgetprivate.h index e894df3e9d..91fdddd962 100644 --- a/gtk/gtkfilechooserwidgetprivate.h +++ b/gtk/gtkfilechooserwidgetprivate.h @@ -23,6 +23,7 @@ #include #include "gtkfilechooserwidget.h" +#include "gtkselectionmodel.h" G_BEGIN_DECLS @@ -39,6 +40,9 @@ gtk_file_chooser_widget_initial_focus (GtkFileChooserWidget *chooser); GSList * gtk_file_chooser_widget_get_selected_files (GtkFileChooserWidget *impl); +GtkSelectionModel * +gtk_file_chooser_widget_get_selection_model (GtkFileChooserWidget *chooser); + G_END_DECLS #endif /* __GTK_FILE_CHOOSER_WIDGET_PRIVATE_H__ */